package com.tianma315.admin.qa.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.tianma315.admin.common.base.CoreServiceImpl;
import org.springframework.stereotype.Service;

import com.tianma315.admin.qa.dao.GlassBottleLineDao;
import com.tianma315.admin.qa.domain.GlassBottleLineDO;
import com.tianma315.admin.qa.service.GlassBottleLineService;

import java.sql.Wrapper;

/**
 * 
 * <pre>
 * 玻璃瓶线
 * </pre>
 * <small> 2019-07-10 09:48:55 | wen</small>
 */
@Service
public class GlassBottleLineServiceImpl extends CoreServiceImpl<GlassBottleLineDao, GlassBottleLineDO> implements GlassBottleLineService {

    @Override
    public GlassBottleLineDO getGlassBottleLineByQaPatrolId(Integer qaPatrolId) {
        EntityWrapper<GlassBottleLineDO> wrapper = new EntityWrapper();
        wrapper.eq("qa_patrol_id",qaPatrolId);
        wrapper.eq("state",0);
        GlassBottleLineDO glassBottleLineDO = selectOne(wrapper);
        return glassBottleLineDO;
    }
}
